package com.fortune.service.ananlysis;

import com.faneui.common.exception.BusinessException;
import com.fortune.service.ananlysis.dto.BillMailInfoDTO;
import org.jsoup.nodes.Document;
import org.springframework.stereotype.Service;

//import us.codecraft.webmagic.selector.Html;

// 招商银行度
@Service("cmbCreditCardBillMailAnanlysis")
public class CmbCreditCardBillMailAnanlysis extends AbstractAnanlysis{

    @Override
    void ananlysis(BillMailInfoDTO billMailInfoDTO, Document document) throws BusinessException {
//        Elements es = document.select("font:contains(￥)");
//        Element e1 = es.get(0) ;
//        Element e2 = es.get(1) ;
//        System.out.println(e1.text());
//        System.out.println(e2.text());
//        billMailInfoDTO.setTotalAmount(new BigDecimal(e1.text().replace("￥","")));
//        billMailInfoDTO.setMinRepayAmount(new BigDecimal(e2.text().replace("￥","")));
//        System.out.println(JSON.toJSONString(billMailInfoDTO));

    } 
}
